import ProxyInterface from '../proxy-interface';
import { FilePathModel } from '../model/file';

class FilePathProxy implements ProxyInterface<FilePathModel> {
  private filePath = new FilePathModel();

  constructor (responseData) {
    let data = responseData.data || responseData;
    Object.assign<FilePathModel, any>(this.filePath, data);
  }

  getModel (): FilePathModel {
    return this.filePath;
  }
}

export {
  FilePathProxy
};
